SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[_Company_GetCompanyCode]
	@LocationCode NVARCHAR(5),
	@CompanyCode NCHAR(9) OUTPUT
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
	
	EXEC @CompanyCode= dbo.CreateCompanyCode @Location = N'HCM1-' -- nvarchar(5)
	

END

GO
